package com.earthchen.hbase.hos.core.exception;

/**
 * user 异常
 *
 * @author: EarthChen
 * @date: 2018/07/31
 */
public class HosUserException extends AbstractHosException {

    private static final long serialVersionUID = 4471687230745635093L;

    private int code;

    private String message;

    public HosUserException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
        this.message = message;
    }

    public HosUserException(int code, String message) {
        super(message, null);
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public int errorCode() {
        return code;
    }
}
